package com.kk.memento;

import lombok.Data;

/**
 * @author o_o
 * @date 2022-06-19
 */
@Data
public class Originator {

    private String state;

    public Memento saveMemento() {
        return new Memento(state);
    }

    public void getStateFromMemento(Memento memento) {
        state = memento.getState();
    }
}
